﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Advanced_Terrain
{
    class OverViewMap
    {
        

        SpriteFont Font;
        int FontHeight;
        SpriteBatch MySprites;
        float CurrentY = 190;
        float CurrentX = 110;
        
        public Texture2D Background;
        public Boolean Visible;
        public void Draw()
        {

            MySprites.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.SaveState);
            MySprites.Draw(Background, new Vector2(0, 0), Color.White);

            
           
                MySprites.End();
                CurrentY = 190;
            
        }
        public void SetSpriteBatch(GraphicsDevice device)
        {
            MySprites = new SpriteBatch(device);
        }
        public void SetFont(SpriteFont font)
        {
            Font = font;
            FontHeight = (int)Font.MeasureString("A").X;
        }
        public void Update()
        {

        }

        public void CreateBitMap(List<TreeClass> TreeList, int[] heightData)
        {

            //TempBackground.SetData(heightData);
            for (int x = 0; x < 255; x++)
            {
                for (int y = 0; y < 255; y++)
                {
                    
                }
            }
        }

    }
}
